<?php
/*
 * Created on Dec 1, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
class CustomerDao
{
	private $id;
	
	private $firstname;
	private $lastname;
	private $countryid;
	private $addressid;
	private $gender;
	private $email;
	private $telephone;
	private $fax;
	private $newsletter;
	private $password;
	private $paypal_payerid;
	private $paypal_ec;
	private $createdTime;
	private $modifiedTime;
	
	private $isAutoRegister = 0;

	public function CustomerDao()
	{
	}
	
	public function setID($id)
	{
		$this->id = $id;
	}
	
	public function getID()
	{
		return $this->id;
	}
	
	public function setFirstName($firstname)
	{
		$this->firstname = $firstname;
	}
	
	public function getFirstName()
	{
		return $this->firstname;
	}
	
	public function setLastName($lastname)
	{
		$this->lastname = $lastname;
	}
	
	public function getLastName()
	{
		return $this->lastname;
	}
	
	public function setCountryid($countryid)
	{
		$this->countryid = $countryid;
	}
	
	public function getCountryid()
	{
		return $this->countryid;
	}
	
	public function setAddressid($addressid)
	{
		$this->addressid = $addressid;
	}
	
	public function getAddressid()
	{
		return $this->addressid;
	}
	
	public function setGender($gender)
	{
		$this->gender = $gender;
	}
	
	public function getGender()
	{
		return $this->gender;
	}
	
	public function setEmail($email)
	{
		$this->email = $email;
	}
	
	public function getEmail()
	{
		return $this->email;
	}
	
	public function setTelephone($telephone)
	{
		$this->telephone = $telephone;
	}
	
	public function getTelephone()
	{
		return $this->telephone;
	}
	
	public function setFax($fax)
	{
		$this->fax = $fax;
	}
	
	public function getFax()
	{
		return $this->fax;
	}
	
	
	public function setNewsletter($newsletter)
	{
		$this->newsletter = $newsletter;
	}
	
	public function getNewsletter()
	{
		return $this->newsletter;
	}
	
	
	public function setPassword($password)
	{
		$this->password = $password;
	}
	
	public function getPassword()
	{
		return $this->password;
	}
	
	
	public function setPaypalPayerid($paypal_payerid)
	{
		$this->paypal_payerid = $paypal_payerid;
	}
	
	public function getPaypalPayerid()
	{
		return $this->paypal_payerid;
	}
	
	
	public function setPaypalEC($paypal_ec)
	{
		$this->paypal_ec = $paypal_ec;
	}
	
	public function getPaypalEC()
	{
		return $this->paypal_ec;
	}
	
	
	public function setCreatedTime($createdTime)
	{
		$this->createdTime = $createdTime;
	}
	
	public function getCreatedTime()
	{
		return $this->createdTime;
	}
	
	
	public function setModifiedTime($modifiedTime)
	{
		$this->modifiedTime = $modifiedTime;
	}
	
	public function getModifiedTime()
	{
		return $this->modifiedTime;
	}
	
	public function setAutoRegister($isAutoRegister)
	{
		$this->isAutoRegister = $isAutoRegister;
	}
	
	public function getAutoRegister()
	{
		return $this->isAutoRegister;
	}
	
	public function getArray()
	{
		$data_array = array(
			'firstname'		=> $this->firstname,
            'lastname'      => $this->lastname,
            'email' 		=> $this->email,
            'telephone'     => $this->telephone,
            'fax'           => $this->fax,
            'gender'        => $this->gender,
            'newsletter'    => $this->newsletter,
            'paypal_ec'    	=> $this->paypal_ec,
            'createdTime'   => $this->createdTime,
            'modifiedTime'  => $this->modifiedTime,
            'password'      => $this->password,
            'paypal_payerid'=> $this->paypal_payerid,
            'isAutoRegister'=> $this->isAutoRegister,
            'countryid'		=> $this->countryid
		);
		
		return $data_array;
	}
}
?>
